package com.dw.service;

public class Demo03 {
	
	public int culate(){
		int b=100;
		int sum=0;
		for(int i=1;i<=100;i++){
			sum=sum+i;
		}
		
		return sum;
	}
	
	public int culate02() {
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		int b=500;
		int sum=0;
		for(int i=1;i<=10000;i++){
			sum=sum+i;
		}
		
		return sum;
	}

}
